package com.zanfeng.signleplatform.io;

import com.zanfeng.signleplatform.constants.Constants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

@ApiModel(value = "PageIO", description = "分页数据")
public class PageDataIO implements Serializable {

    @ApiModelProperty(value = "当前页码", example = "0", allowEmptyValue = true)
    private int currentPage;
    @ApiModelProperty(value = "单页记录数量", example = "20", allowEmptyValue = true)
    private int pageSize;
    @ApiModelProperty(value = "排序字段", example = " ", allowEmptyValue = true)
    private String sortName;
    @ApiModelProperty(value = "排序方向", example = " ", allowEmptyValue = true)
    private String sortOrder;

    public PageDataIO() {
        this.currentPage = 0;
        this.pageSize = Constants.kAdmin_PageSize;
        this.sortName = "";
        this.sortOrder = "";
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public String getSortName() {
        return sortName;
    }

    public void setSortName(String sortName) {
        this.sortName = sortName;
    }

    public String getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(String sortOrder) {
        this.sortOrder = sortOrder;
    }
}
